
package listener;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 1. 測試 Spring 如何發佈 event. <br>
 * 2. How to implement the event of the ApplicationEvent.<br>
 * 3. How to implement the listener of the ApplicationListener.<br>
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class EventPublishTester
{
	public EventPublishTester()
	{
		ApplicationContext context = new ClassPathXmlApplicationContext( "listener/listener.xml" );

		context.publishEvent( new MyApplicationEvent( EventPublishTester.class ) );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		new EventPublishTester();
	}

}
